﻿namespace DslEditorPowerToy.Controls.Editors
{
    using System;
    using System.Drawing;

    public class SampleItem
    {
        private Color _backColor = Color.FromKnownColor(KnownColor.Control);
        private System.Drawing.Font _font = SystemFonts.DefaultFont;
        private string _name = string.Empty;
        private System.Drawing.Size _size = new System.Drawing.Size();

        public SampleItem(string name, Color backColor)
        {
            this._name = name;
            this._font = SystemFonts.DefaultFont;
            this._size = new System.Drawing.Size();
            this._backColor = backColor;
        }

        public override string ToString()
        {
            return string.Format("{0} ({1})", this._name, base.ToString());
        }

        public Color BackColor
        {
            get
            {
                return this._backColor;
            }
            set
            {
                this._backColor = value;
            }
        }

        public System.Drawing.Font Font
        {
            get
            {
                return this._font;
            }
        }

        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }

        public System.Drawing.Size Size
        {
            get
            {
                return this._size;
            }
            set
            {
                this._size = value;
            }
        }
    }
}

